package com.ewzj.bigdata.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.ewzj.bigdata.mvp.contract.EditProfileContract;
import com.ewzj.bigdata.mvp.model.EditProfileModel;


@Module
public class EditProfileModule {
    private EditProfileContract.View view;

    /**
     * 构建EditProfileModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public EditProfileModule(EditProfileContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    EditProfileContract.View provideEditProfileView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    EditProfileContract.Model provideEditProfileModel(EditProfileModel model) {
        return model;
    }
}